<template>
	<view>
		<view class="shop-list w-100">
        <view @tap="$emit('go',$event)" class="shop-one flex-row" :data-index="index" :data-template="template_index" v-for="(item,index) in (param?param.list:list)" :key="index">
            <view class="flex-grow-0 flex-y-center">
                <form @submit="$emit('_formIdSubmit',$event)" :data-type="param.open_type" :data-url="'/pages/shop-detail/shop-detail?shop_id='+param.id" reportSubmit="true">
                    <button formType="submit" id="_formIdSubmit" class="_formIdSubmit">
                        <image :src="item.pic_url" style="width:150upx;height:150upx;border-radius:150upx;"></image>
                    </button>
                </form>
            </view>
            <view class="w-100 flex-grow-1" style="margin:0 20upx;">
                <view class="text-more" style="color:#353535;" v-if="!param||param.name==1">{{item.name}}</view>
                <view class="fs-sm flex-row mt-20" v-if="!param||param.score==1">
                    <view class="flex-grow-0" style="margin-right:12upx;">评分：</view>
                    <view class="flex-grow-1">
                        <image :src="__wxapp_img.shop.love.url" style="margin-right:4upx;width:20upx;height:18upx;" v-if="idx<=item.score-1" v-for="(itemn,idx) in item.score" :key="index"></image>
                    </view>
                </view>
                <view class="fs-sm mt-20" v-if="!param||param.mobile==1">电话：{{item.mobile}}</view>
                <view class="fs-sm mt-20" v-if="item.distance">距离：{{item.distance==-1?'无':item.distance}}</view>
            </view>
            <view class="flex-grow-0 flex-y-center">
                <view catchtap="goto" :data-index="index" :data-template="template_index">
                    <view class="flex-row flex-x-center">
                        <image :src="__wxapp_img.shop.nav_one.url" style="width:50upx;height:50upx;margin-bottom:16upx;"></image>
                    </view>
                    <view class="fs-sm flex-x-center">一键导航</view>
                </view>
            </view>
        </view>
    </view>
	</view>
</template>

<script>var myVue = {};
	export default {
		props:['template_index','param','__wxapp_img'],
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped>

</style>
